<?php

include(dirname(__FILE__).'/../../bootstrap/functional.php');
//$url="http://localhost:1970/index.php";
$browser = new sfTestBrowser();
 

$browser->
  get('contact/contactform')->
  isStatusCode(200)->
  isRequestParameter('module', 'contact')->
  isRequestParameter('action', 'contactform')->
  checkResponseElement('body', '/Wezom/')->
  click('Submit')->
  checkResponseElement('body', '/Required/')->
  get('contact/contactform?c=false')->
  isStatusCode(200)->post('contact/send',array('ft'=>'true','contact[email]' => 'admin@dddd.dd','contact[content]'=>'d1q2w3e'))->
  checkResponseElement('body', '/Wezom/');



?>